@echo off
for %%i in (*.js) do (
    @echo %%i
    @echo '%%i', >> file.js
)